package com.tomek.ktoryoperator.utils;

import android.util.Log;

import com.tomek.ktoryoperator.C;

public class LogUtils {
	public static void d(Class<?> clazz, String method) {
		d(String.format("%s.%s()", clazz.getSimpleName(), method));
	}

	public static void d(Class<?> clazz, String method, String msg, Object... params) {
		d(String.format("%s.%s(): %s", clazz.getSimpleName(), method, msg), params);
	}

	private static void d(String msg, Object... params) {
		Log.d(C.TAG, String.format(msg, params));
	}

	public static void e(String msg, Object... params) {
		Log.e(C.TAG, String.format(msg, params));
	}

	public static void e(Exception e, String msg, Object... params) {
		Log.e(C.TAG, String.format(msg, params), e);
	}
}